<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@include file="/includes.jsp"%>

<div class="layout">
    <table class="styled" cellspacing="0">
        <tr>
            <th class="styled">Created</th>
            <th class="styled">Expires</th>
            <th class="styled">Type</th>
        </tr>
        <logic:iterate name="licenceKeys" id="key">
            <logic:equal name="key" property="isExpired" value="true">
                <tr class="expired">
            </logic:equal>
            <logic:notEqual name="key" property="isExpired" value="true">
                <tr>
            </logic:notEqual>
                <logic:notEmpty name="key">
                    <td class="styled"><beans:write name="key" property="creationDate" format="yyyy-MM-dd HH:mm:ss"/></td>
                    <td class="styled"><beans:write name="key" property="expiryDate" format="yyyy-MM-dd HH:mm:ss"/></td>
                    <td class="styled"><beans:write name="key" property="type"/></td>
                </logic:notEmpty>
                <logic:empty name="key">
                    <td class="styled">&nbsp;</td>
                    <td class="styled">&nbsp;</td>
                    <td class="styled">Invalid licence</td>
                </logic:empty>
            </tr>
        </logic:iterate>
    </table>
</div>
